import request from '@/utils/request'

// 查询
export function adminAuthorizeList(query) {
    return request({
        url: '/projectLeader/adminAuthorize/list',
        method: 'get',
        params: query
    })
}

export function agencyList(query) {
    return request({
        url: '/projectLeader/adminAuthorize/agencyList',
        method: 'get',
        params: query
    })
}

// 查询历史记录
export function adminAuthorizeHistoryList(query) {
    return request({
        url: '/projectLeader/adminAuthorize/historyList',
        method: 'get',
        params: query
    })
}

//取消
export function cancelAdminAuthorize(data) {
    return request({
        url: '/projectLeader/adminAuthorize/cancel',
        method: 'put',
        data: data
    })
}

//添加
export function addAdminAuthorize(data) {
    return request({
        url: '/projectLeader/adminAuthorize/add',
        method: 'put',
        data: data
    })
}

// 查询
export function adminAuthorizeLeaderList(query) {
    return request({
        url: '/projectLeader/adminAuthorize/leaderList',
        method: 'get',
        params: query
    })
}